import random
lost = 0
win = 0
scissorrockFive = ["剪刀","石头","布"]
while win != 3 and lost != 3:
    robot = random.choice(scissorrockFive)
    superman = input("请出拳：")
    if superman == robot:
     print("平局！")
    elif superman == "剪刀" and robot == "石头":
     print("你输了")
     lost += 1
    elif superman == "剪刀" and robot == "布":
     print("你赢了")
     win += 1
    elif superman == "石头" and robot == "布":
     print("你输了")
     lost += 1
    elif superman == "石头" and robot == "剪刀":
     print("你赢了")
     win += 1
    elif superman == "布" and robot == "剪刀":
     print("你输了")
     lost += 1
    elif superman == "布" and robot == "石头":
     print("你赢了")
     win += 1
if win == 3:
    print("你获胜了")
else:
    print("你是人机吗")